System and method for inputing user commands to a processor

ABSTRACT

Provided is a system for inputting operation system (OS) commands to a data processing device. The system includes a video camera that captures images of a viewing space. A processor detects a predetermined object in the images using an object recognition algorithm not involving background information in an image. One or more image analysis parameters of the object are extracted from the images and one or more motion detection tests are applied. Each motion detection test has an associated OS command, and when a test succeeds, the OS command associated with the test is executed. By not relying on background information in an image, the described system may be used in devices that are moved in use, such as a palm plot, personal digital assistant (PDA), a mobile telephone, a digital camera, and a mobile game machine.

FIELD OF THE INVENTION

This invention relates to devices configured to receive a user input.

BACKGROUND OF THE INVENTION

Entering data into a data processing device is accomplished using a datainput device such as a keyboard, mouse, or joystick. Although electronicdevices are constantly being miniaturized, the size of the variousassociated data input devices cannot be substantially decreased sincethey must conform to the size of the user's hands. Methods for inputtingdata have therefore been devised in which the user's hands do not haveto touch the device. U.S. Pat. Nos. 5,767,842 to Korth, and 6,650,318 toAmon for example, disclose an optical system in which a camera is usedto monitor a user's hand and finger motions. A software applicationinterprets these motions as operations on a physically non- existentcomputer keyboard or other input device. In these systems, the camerahas a fixed position, so that the background of the images remainsconstant. This allows the software application to make use ofinformational present in the constant background in order to detect theuser's hands in each image. This system, therefore, cannot be used in adevice that in use is moved, because in this case, the background of theimages is not constant, so there is no reliable background informationin the images. Devices that are moved in use include hand-held devicessuch as a palm plot, personal digital assistant (PDA), a mobiletelephone, a digital camera, and a mobile game machine.

SUMMARY OF THE INVENTION

The present invention provides a method and system for inputtingoperating system (OS) commands to a data processing device. The systemof the invention may be used to input OS commands to the device insteadof or in addition to any input devices associated with the device suchas a keyboard, mouse or joystick. The system of the invention my be usedin any type of data processing device such as a personal computer (PC),a portable computer such as a PDA, a laptop or a palm plot, a mobiletelephone, a radio or other entertainment device, a vehicle, a digitalcamera, a mobile game machine, a computerized medical device and a smarthouse product.

The system of the invention comprises a video camera and a processor.The camera is positioned to capture images in a viewing space. Imagescaptured by the camera are digitized by the camera and input to theprocessor. The processor is configured to run a software applicationthat analyzes images captured by the camera, preferably in real time.The analysis performed by the software application includes detecting inan image obtained at a time t_(k) a predetermined object in the viewingspace of the camera. The object may be, for example, one or more fingersof a user or a hand held stylus.

In accordance with the invention, detecting the object in an image isdone using an algorithm that does not rely on background informationpresent in the image. By not relying on background information in animage, the system of the invention may be used in devices that are movedin use. For example, the object may be detected in an image using asegmentation algorithm. Methods for segmentation are disclosed, forexample, in Gonzalez, R. C. and Woods, R. E. [2002]. Digital ImageProcessing, 2nd ed., Prentice Hall, Upper Saddle River, N.J.; R.Gonzalez, “Digital Image Processing using Matlab” , Pearson PrenticeHall 2004; and in Sigal, L et al “Estimation and Prediction of EvolvingColor Distributions for Skin Segmentation Under Varying Illumination”,BU CS TR99-015.v2, December 1999 (revised in March 2000). Any type ofsegmentation algorithm may be used in the system of the invention, suchas a “WaterShed” segmentation or a “growing region segmentation”, as isknown in the art.

A segmentation algorithm is a multi-staged process, where at each stagethe image is binarized into set of pixels having intensity (for example,either on a gray level scale or any one or more of a red, green or bluescale) below a particular threshold and the set of pixels havingintensity above the threshold. At each stage, the threshold isincremented and contiguous sets of pixels in each set are identified. Atthe end of the process, stable sets of contiguous points are identified.A stable set of contiguous pixels is a set that remained constant duringa predetermined number of consecutive stages of the process. After thestable contiguous sets of pixels have been identified in the image, anobject recognition procedure is performed on the stable sets to identifythe object among the stable sets. The object recognition procedure makesuse of previously obtained image data relating to features of the objectsuch as its eccentricity or dimensions. The same previously obtainedimage data may be applied to each image, or the image data may beupdated on the basis of recent earlier images of the object. Any objectrecognition procedure may be applied to the stable sets. For example, anadaptive linear combination may be calculated of one or more of thefeatures of the object and applied to each of the stable sets.

The software application also extracts from an image obtained at a timet_(k) one or more image analysis parameters x_(i)(t_(k)). One or more ofthe image analysis parameters may be history independent, such as thepixel address in the image of the tip or width of the object in pixelsin the image, the length in pixels of the object in the image, or theorientation of the object in the image. One or more of the imageanalysis parameters may be history dependent, in which case extractionof the parameters is performed on the image together with previouslyand/or subsequently obtained images. Such history dependent parametersinclude the speed of the object at the time of the image, the change inthe size of the width of the object at the time of the image, or therate and direction of rotation of the object at the time of the image.One or more of the image analysis parameters may be binary parameters.For example, a parameter may take on the value 1 if the object isdetected in the viewing space and the value 0 if the object is notdetected in the viewing space. The analysis of the software thusgenerates a time sequence of vectors X(t_(k))={x₁(t_(k)), . . . ,x_(n)(t_(k))} that is stored in the memory.

The software is further configured to apply one or more motion detectiontests to one or more of the vectors X obtained in a recent time windowand stored in the memory. The time window may be, for example 0.5 sec,or 1 sec. Each test detects a specific type of motion of the objectduring the time window. A test may be a binary test, in which case theresult of the test is an indication 0 that the test failed (i.e. theobject did not perform the motion detected by the test during the timewindow) or an indication 1 that the test succeeded it (i.e. the objectperformed the motion detected by the test). Alternatively, the result ofa test may be a number between 0 and 1. One or more of the tests may bedefined as a linear combination of previously defined tests. In thesecases, determining whether a test succeeds or fails may be performed,for example, using a state machine, morphological algorithms, or aneural network.

As a first example, a test may be, for example, that during the timewindow the object approached the camera. This test succeeds if the widthof the object in pixels increased during the time window. As a secondexample, a test may be for example that the object moved away from thecamera (the width of the object in pixels decreased during the timewindow). Other examples of tests include that the object firstapproached the camera and then moved away from the camera during thetime window, the object disappeared from viewing space of the camera,the object moved in a predetermined path such as in a circle or so as totrace an alphanumeric character, the object rotated, the object wasstationary, the object moved (performed any type of motion), the objectperformed a flicking motion, the object accelerated, the objectdecelerated, the object moved and then stopped, or the object remainedstationary at a particular location for predetermined amount of time.

The memory of the system stores a look-up table that provides, for eachtest an associated OS command. When a test succeeds, the OS commandassociated with the test is executed. The OS commands may be, forexample, depressing a virtual key displayed on the display screen,moving a curser appearing on the display screen to a new location on thescreen, running on the processor a software application stored in thememory, turning on or off a light associated with the device, changingthe sound level or station on a radio, or turning off the device,zooming in or out of an image displayed on a screen, controlling asurgical instrument, and sending a command to an application (eg.sending a “shooting” command to a game applicaton).

Preferably, there is an intuitive relationship between the motiondetected by a test and the OS command associated with the test. Thefollowing are examples of an intuitive relationship between a motiondetected by a test and the associated OS command.

A test that detects that the object moved towards the camera and thenmoved away from the camera may have an associated OS command ofdepressing a key on a virtual keyboard to which a curser on the screenis presently pointing.

A test that detects a linear movement of the object across the viewingspace may have an associated OS command of dragging an object such as acursor to a new location on the display screen.

A test that detects whether the object has traced out a path in theviewing space of the camera in the shape of a particular alphanumericcharacter may have an associated OS command of depressing a key on avirtual keyboard displayed on a display of the device for thatalphanumeric character.

A test that detects a “shooting motion” of the object may have anassociated OS command of “shooting” at a target appearing on thedisplay.

A test detecting a flicking motion of the object may have an associatedOS command of turning off the device.

The system of the invention may be used in devices adapted to be worn,such as a pendent or goggles. The system allows OS commands to be inputto the device without touching the device. The device is thus of benefitto users whose hands are soiled, such as technicians, cooks, andsurgeons. The system may also be used in devices having one or more3-dimensional virtual objects.

Thus, in its first aspect, the invention provides a system for inputtingoperation system (OS) commands to a data processing device comprising:

-   -   (a) a video camera capturing images of a viewing space; and    -   (b) a processor configured to:        -   i) detect a predetermined object in one or more images            obtained by the camera using an object recognition algorithm            not involving background information in an image;        -   ii) extract one or more image analysis parameters of the            object in the one or more images obtained by the camera; and        -   iii) for each of one or more motion detection tests:            -   (I) applying the motion detection test to image analysis                parameters extracted during a recent time window; and            -   (II) executing an operating system command associated                with the motion detection test if the motion detection                test succeeds.

In its second aspect, the invention provides a data processing devicecomprising the system for inputting operation system (OS) commands ofthe invention.

In its third aspect, the invention provides a method for inputtingoperation system (OS) commands to a data processing device having avideo camera capturing images of a viewing space, comprising:

-   -   a. detecting a predetermined object in one or more images        obtained by the camera using an object recognition algorithm not        involving background information of an image;    -   b. extracting one or more image analysis parameters of the        object in the one or more images obtained by the camera; and    -   c. for each of one or more motion detection tests:        -   i. applying the motion detection test to image analysis            parameters extracted during a recent time window; and        -   ii. executing an operating system command associated with            the motion detection test if the motion detection test            succeeds.

In its fourth aspect, the invention provides a computer programcomprising computer program code means for performing all the steps ofthe method of the invention.

In its fifth aspect, the invention provides a computer program of theinvention embodied on a computer readable medium.

BRIEF DESCRIPTION OF THE DRAWINGS

In order to understand the invention and to see how it may be carriedout in practice, a preferred embodiment will now be described, by way ofnon-limiting example only, with reference to the accompanying drawings,in which:

FIG. 1 shows a device having a system for inputting OS commands to adata processing device in accordance with one embodiment of theinvention; and

FIG. 2 shows a method for inputting OS commands to a data processingdevice in accordance with the method of the invention.

DETAILED DESCRIPTION OF THE INVENTION

FIG. 1 shows a data processing device 2 in accordance with oneembodiment of the invention. The data processing device 2 may be, forexample, a personal computer (PC), a portable computer such as a PDA, alaptop or a palm plot, or a mobile telephone, a radio or otherentertainment device, a vehicle, a digital camera or a mobile gamemachine. The device 2 has a video camera 6. The device 2 may also beprovided with a display screen 4 and various data input devices such asa keypad 8 having a plurality of keys 10 for inputting data into thedata input device 2.

The device 2 has a processor 12 inside housing 14. The processor 12 isconfigured to receive data from the camera 6 and any other input devicesassociated with the device 2 such as the keypad 8.

The camera 6 views a conical or pyramidal volume of space 16 indicatedby the broken lines. The camera 6 may have a fixed position on thedevice 2, in which case the viewing space 16 is fixed relative to thedevice 2, or may be positionable on the device 2, in which case theviewing space 16 is selectable relative to the device 2.. Imagescaptured by the camera 6 are digitized by the camera 6 and input to theprocessor 12.

The processor 12 is configured to run a software application thatanalyzes images captured by the camera 6. The analysis performed by thesoftware application includes detecting in an image obtained at a timet_(k) a predetermined object 24 in the viewing space 16. As explainedabove the object 24 is detected using an object recognition algorithmthat does not involve background information of the image, for example,by using a segmentation algorithm. The object 24 may be for example afinger of a user as shown in FIG. 2. Alternatively, the object may be ahand held stylus (not shown). The object 24 has a length and orientationin the viewing space represented by means of a vector 27 having a tip 25at a free end of the object 24. The object 24 also has a width 23. Theuser may use his other hand 19 to hold the device 2 in use, if thedevice 2 is a hand-held device. The hand 19 may also be used to activatereal input devices associated with the device 2, such as activating keys10 on the keypad 8.

The software application is further configured to extract from an imageobtained at a time t_(k) one or more image analysis parametersx_(i)(t_(k)). One or more of the image analysis parameters may behistory independent, such as the pixel address in the image of the tip25, the width 23 of the object 24 in pixels in the image, the length inpixels of the object 24 in the image, or the angle that the vector 27makes in the image with a fixed direction. One or more of the imageanalysis parameters may be history dependent, in which case extractionof the parameters is performed on the image together with previouslyand/or subsequently obtained images. Such history dependent parametersinclude the speed of the tip 25 at the time t_(k) of the image, thechange in the size of the width 23 of the object 24 at the time of theimage, or the rate of rotation of the vector 27 at the time of theimage. One or more of the image analysis parameters may be binaryparameters. For example, a parameter may take on the value 1 if theobject 24 is detected in the viewing space and the value 0 if the object24 is not detected in the viewing space. The analysis of the processorthus generates a time sequence of vectors X_(k)={x₁(t_(k)), . . . ,x_(n)(t_(k))} that is stored in the memory 16.

The software application also applies one or more motion detection teststo one or more of the vectors X_(k) obtained in a recent time window andstored in the memory 16. The time window may be, for example 0.5 sec, or1 sec. The length of the time window may be different for differenttests. Each test detects a specific type of motion of the object 24during the time window. The result of each test is an indication thatthe test failed (i.e. the object 24 did not perform the motion detectedby the test during the time window) or an indication that the testsucceeded it (i.e. the object 24 performed the motion detected by thetest). As explained above, a test may or may not be a binary test. Theresult of test may depend upon a user input. For example, a test maygive an indication of success only if the user simultaneously depresseda predetermined key on the keypad 8.

As a first example, a test may be, for example, that during the timewindow the object 24 approached the camera. This test produces anindication of success if the width 23 of the object in pixels increasedduring the time window. As a second example, a test may be for examplethat the object moved away from the camera (the width 23 of the objectin pixels decreased during the time window). Other examples of testsinclude that the object 24 first approached the camera and then movedaway from the camera during the time window, the object disappeared fromviewing space 16, the object moved in a predetermined path, the objectrotated, the object was stationary, the object moved (performed any typeof motion), the object performed a flicking motion, the objectaccelerated, the object decelerated, or the object moved and thenstopped.

The memory 16 stores a look-up table that provides, for each test anassociated OS command. When a test succeeds, the OS command associatedwith the test is executed. The OS commands may be, for example,depressing a virtual key displayed on the display screen, moving acurser appearing on the display screen to a new location on the screen,running on the processor 12 a software application stored in the memory16, or turning off the device 2. The device may provide an indicationthat the OS command was executed. For example, an OS command equivalentto depressing a key on the virtual keyboard may be indicated by brieflyshowing the key depressed on a virtual keyboard on the screen 4, or bybriefly changing the appearance of the key. Other possibilities forindicating that the OS command was executed include briefly enlarging orotherwise changing the appearance of a depressed key or of the cursor onthe screen 4, displaying an icon on the screen 4, producing a sound, andvibrating the device.

The viewing space 16 may be divided into two or more independentsubspaces, with different tests being applied to motion of the object 24in the different subspaces.

FIG. 2 shows a flow chart for a method for inputting an OS command to adata processing device in accordance with one embodiment of the methodof the invention. In step 30 an image obtained by the camera 6 is inputto the memory 16 of the processor 12. In step 31, the predeterminedobject 24 is identified in the image using an object recognitionprocedure that does not involve background information in the image. Instep 32, one or more image analysis parameters are extracted from theimage and stored in the memory 16. In step 34 a motion detection test isapplied to the extracted image analysis parameters obtained during arecent time window and stored in the memory 16. In step 36 theindication of the test is determined. If the indication is “success”,i.e. the test detected the type of motion detected by the test, then instep 38, the OS command associated with the test is looked up in thelook-up table stored in the memory 16, and in step 40, the OS commandassociated with the test is executed. If at step 36 it is determinedthat the indication of the test is “failure”, i.e. the test did notdetect the type of motion detected by the test, or after step 40, if theindication of the test was 1, the process proceeds to step 42 where itis determined whether another motion test is to be applied to the image.If yes, the process returns to step 34 with another motion detectiontest being applied to the image. If no (i.e. all of the motion detectiontests have been applied to the present time window) then the processreturns to step 20 with a new image obtained by the camera 6 being inputto the memory 16.

It will also be understood that the system according to the inventionmay be a suitably programmed computer. Likewise, the inventioncontemplates a computer program being readable by a computer forexecuting the method of the invention. The invention furthercontemplates a machine-readable memory tangibly embodying a program ofinstructions executable by the machine for executing the method of theinvention.

1.-24. (canceled)
 25. A system for inputting operation system (OS) commands to a data processing device, comprising: (a) a video camera capturing images of a viewing space; and (b) a processor configured to: i) detect a predetermined object in one or more images obtained by the camera using an object recognition algorithm not involving background information in an image; ii) extract one or more image analysis parameters of the object in the one or more images obtained by the camera; and iii) for each of one or more motion detection tests: (I) applying the motion detection test to image analysis parameters extracted during a recent time window; and (II) executing an operating system command associated with the motion detection test if the motion detection test succeeds.
 26. The system according to claim 25, wherein detecting a predetermined object in one or more images obtained by the camera is carried out using a segmentation algorithm.
 27. The system according to claim 25, wherein the predetermined object is a finger or a stylus.
 28. The system according to claim 25, wherein one or more of the image analysis parameters is history independent.
 29. The system according to claim 25, wherein one or more of the image analysis parameters is history dependent.
 30. The system according to claim 25, wherein one or more of the image analysis parameters is selected from the group consisting of (a) a location of a tip of the object in an image, (b) a width of the object in an image, (c) a length of the object in an image, (d) an orientation of the object in an image, (e) a speed of the object at a time the image was obtained by the camera, (f) a change in the a width of the object at a time the image was obtained by the camera, (g) a rate of rotation of the object at a time the image was obtained by the camera, and (h) an image analysis parameter having a first value if the object is detected in the image and a second value if the object is not detected in the image.
 31. The system according to claim 25, wherein one or more of the motion detection tests is a motion detection test detecting a motion selected from the group consisting of (a) during the time window the object approached the camera, (b) during the time window the object moved away from the camera, (c) during the time window the object first approached the camera and then moved away from the camera, (d) during the time window the object disappeared from the viewing space of the camera, (e) during the time window the object moved in a predetermined path, (f) during the time window the object rotated, (g) during the time window the object was stationary, (h) during the time window the object moved, (i) during the time window the object performed a flicking motion, (j) during the time window the object accelerated, (k) during the time window the object decelerated, and (l) during the time window the object moved and then stopped.
 32. The system according to claim 31, wherein one or more of the motion detection tests is a motion detection test detecting that the object moved in a predetermined path during the time window.
 33. The system according to claim 25, wherein one or more of the OS commands is selected from the group consisting of (a) depressing a virtual key displayed on a screen, (b) moving a curser appearing on a screen, (c) running on the processor a software application, (d) turning alight on or off, (e) turning off the system, (f) zooming in or out of a picture on a screen, (g) adjusting a radio or other entertainment device, (h) adjusting a medical device, and (i) sending a command to an application.
 34. A data processing device comprising the system for inputting operation system (OS) commands according to claim
 25. 35. The data processing device according to claim 34, selected from the group consisting of a personal computer (PC), a portable computer, a PDA, a laptop, a palm plot, a mobile telephone, a radio, a digital camera a vehicle, a medical device, a smart home appliance, and a mobile game machine.
 36. A method for inputting operation system (OS) commands to a data processing device having a video camera capturing images of a viewing space, comprising: detecting a predetermined object in one or more images obtained by the camera using an object recognition algorithm not involving background information of an image; extracting one or more image analysis parameters of the object in the one or more images obtained by the camera; and for each of one or more motion detection tests: applying the motion detection test to image analysis parameters extracted during a recent time window, and executing an operating system command associated with the motion detection test if the motion detection test succeeds.
 37. The method according to claim 36, wherein detecting a predetermined object in one or more images obtained by the camera is carried out using a segmentation algorithm.
 38. The method according to claim 36, wherein the predetermined object is one or more fingers or a stylus.
 39. The method according to claim 36, wherein one or more of the image analysis parameters is history independent.
 40. The method according to claim 36, wherein one or more of the image analysis parameters is history dependent.
 41. The method according to claim 36, wherein one or more of the image analysis parameters is selected from the group consisting of (a) a location of a tip of the object in an image, (b) a width of the object in an image (c) a length of the object in an image, (d) an orientation of the object in an image, (e) a speed of the object at a time the image was obtained by the camera, (f) a change in the a width of the object at a time the image was obtained by the camera, (g) a rate of rotation of the object at a time the image was obtained by the camera, and (h) an image analysis parameter having a first value if the object is detected in the image and a second value if the object is not detected in the image.
 42. The method according to claim 36, wherein one or more of the motion detection tests is a motion detection test detecting a motion selected from the group consisting of (a) during the time window the object approached the camera, (b) during the time window the object moved away from the camera, (c) during the time window the object first approached the camera and then moved away from the camera, (d) during the time window the object disappeared from the viewing space of the camera, (e) during the time window the object moved in a predetermined path (f) during the time window the object rotated, (g) during the time window the object was stationary, (h) during the time window the object moved, (i) during the time window the object performed a flicking motion, (j) during the time window the object accelerated, (k) during the time window the object decelerated, and (l) during the time window the object moved and then stopped.
 43. The method according to claim 42, wherein one or more of the motion detection tests is a motion detection test detecting that the object moved in a predetermined path during the time window, wherein the predetermined path traces an alphanumeric character.
 44. The method according to claim 36, wherein one or more of the OS commands is selected from the group consisting of (a) depressing a virtual key displayed on a screen, (b) moving a curser appearing on a screen, (c) running on the processor a software application, (d) turning alight on or off, (e) turning off the system, (f) zooming in or out of a picture on a screen, (g) adjusting a radio or other entertainment device, (h) adjusting a medical device, and (i) sending a command to an application.
 45. A program storage device readable by machine, tangibly embodying a program of instructions executable by the machine to perform method steps for inputting operation system (OS) commands to a data processing device having a video camera capturing images of a viewing space, the method comprising: detecting a predetermined object in one or more images obtained by the camera using an object recognition algorithm not involving background information of an image; extracting one or more image analysis parameters of the object in the one or more images obtained by the camera; and for each of one or more motion detection tests: applying the motion detection test to image analysis parameters extracted during a recent time window, and executing an operating system command associated with the motion detection test if the motion detection test succeeds.
 46. A computer program product, comprising a computer useable medium having computer readable program code embodied therein for inputting operation system (OS) commands to a data processing device having a video camera capturing images of a viewing space, the computer program product comprising: computer readable program code for causing the computer to detect a predetermined object in one or more images obtained by the camera using an object recognition algorithm not involving background information of an image; computer readable program code for causing the computer to extract one or more image analysis parameters of the object in the one or more images obtained by the camera; and computer readable program code for causing the computer, for each of one or more motion detection tests, to apply the motion detection test to image analysis parameters extracted during a recent time window; and to execute an operating system command associated with the motion detection test if the motion detection test succeeds.
 47. A computer program, comprising computer program code means for performing all the steps of claim 36, when said program is run on a computer.
 48. A computer program as claimed in claim 47, embodied on a computer readable medium. 